package de.htwg.ppt2html5.main;


import java.awt.EventQueue;

import org.apache.log4j.PropertyConfigurator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import de.htwg.ppt2html5.gui.Gui;
import de.htwg.ppt2html5.gui.IGui;


/**
 * @author Roman Allenov
 */
public class Main {

   private static Logger log = LoggerFactory.getLogger(Main.class);
   private static IGui   window;


   public static void main(String[] args)
   {
      PropertyConfigurator.configure("log4j.properties");

      log.info("app start");
      EventQueue.invokeLater(new Runnable() {
         public void run()
         {
            try {
               window = new Gui();
            }
            catch (Exception e) {
               log.error("Error on starting the application.", e.getMessage());
            }
         }
      });
   }
}
